package com.niit.mall.product.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @BelongsProject: pardo_mall_backend
 * @BelongsPackage: com.niit.mall.product.domain.po
 * @Author: ChuXuan
 * @CreateTime: 2025-06-13  08:50
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@Accessors(chain = true)
@TableName(value = "tb_advertise",  autoResultMap = true)
public class Advertise implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private Integer type;
    private String picture;
    private String url;
    private Integer status;
    private Integer clickCount;
    private Integer sort;

    /**
     *
     * 删除标记，用于标识数据是否已被逻辑删除。
     */
    @TableLogic
    @TableField(value = "is_deleted")
    private Integer isDeleted;
    /**
     * 创建日期
     */
    @TableField(value = "create_date")
    private LocalDate createDate;

    /**
     * 更新日期
     */
    @TableField(value = "update_date")
    private LocalDate updateDate;

    /**
     * 版本号
     */
    @TableField(value = "version")
    private Integer version;
}
